package com.ben.xinyue.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ben.xinyue.seckill.domain.entity.MiaoshaOrder;
import org.apache.ibatis.annotations.Param;

/**
 * @author: xinyue
 * @date: 2020/09/04 09:43
 * @description: 
 * @modifiedBy:
 * @version: 1.0.0
 */
public interface MiaoshaOrderMapper extends BaseMapper<MiaoshaOrder> {

    /**
     * 根据用户ID 和商品ID查询
     * @param userId 用户ID
     * @param goodsId 商品ID
     * @return 结果
     */
    MiaoshaOrder selectOrderByUserIdAndGoodsId(@Param("userId") Long userId, @Param("goodsId") Long goodsId);
}
